package tests;

import java.util.ArrayList;

import view.View;

import controller.Controller;

import junit.framework.TestCase;
import model.Model;
import model.Product;

public class ControllerTests extends TestCase {

	ArrayList<Product> products = new ArrayList<Product>();
	Model model = new Model(products);
	View view = new View(model);
	Controller controller = new Controller(model, view);
	
	Product glass = new Product("glass", 5);
	public void testAddProduct(){
		controller.addProduct(glass);
		assertTrue(controller.getModel().getProducts().contains(glass));
	}
	
}